# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-javascript
pkgver=0.23.0
pkgrel=0
pkgdesc="JavaScript grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-javascript"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/tree-sitter/tree-sitter-javascript/archive/refs/tags/v$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}
package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
fd116f00a694b18f67143df57b80ce29547c5bebc64e02b11f5a2d0c1c01347b68a963830e5bad837856fab1437faddd14c09f63733b52cf00d44825451ca110  tree-sitter-javascript-0.23.0.tar.gz
"
